<?php
$this->load->view('common/header',
array(
  'title' =>'品牌管理'
));
$this->load->view('common/sliderbar',
array(
  'menu'   => '',
  'option' => 'brand'
));
 ?>
 <style>
  li{
    list-style: none;
  }
  .dialog-button{
    margin-top: 10px;
    padding-left: 80px;
  }
 </style>
<div class="main-content">
	<div class="breadcrumbs" id="breadcrumbs">
		<ul class="breadcrumb">
			<li>
				<a>品牌管理</a>
			</li>
		</ul>
	</div>
	 <div style="padding-top:5px;padding-left:5px;">
		<form class="form-search" style="width:300px;display:block;float:left" action="/brand" post="get">
			<div class="input-group">
				<input type="text" class="form-control search-query" name="search" placeholder="请输入关键字" <?php if(!empty($_GET[ 'search'])){echo 'value="'.$_GET[ 'search']. '"';} ?> />
				<span class="input-group-btn">
        <input type="submit"  class="btn btn-info btn-sm" value="搜索">
				</span>
			</div>
		</form>
		<!-- <a href="/shop/shopexcel">导出所有店铺信息</a> -->
    <button style="margin-left:20px;" type="button" class="btn btn-sm btn-primary" id="addbrand">添加品牌</button>
		<div style="float:right;display:inline-block;margin-right:20px;">
			<ul class="pagination" style="margin:0px;">
					<?php echo $this->pagination->create_links() ?>
			</ul>
		</div>
	</div>
		<div class="row">
			<div class="table-responsive">
				<table id="sample-table-1" class="table table-striped table-bordered table-hover">
					<thead>
						<tr>
							<th class="center">编号</th>
							<th class="center" style="width:50%;">品牌</th>
							<th class="center">导出xlc</th>
							<th class="center">操作</th>
						</tr>
					</thead>
					<tbody>
						<?php foreach ($brandlist as $brandlist): ?>
						<tr>
							<td class="J_bid center"><?php echo $brandlist['bid'] ?></td>
							<td class="J_bname center"><?php echo $brandlist['bname'] ?></td>
							<td class="center" data-bid="<?php echo $brandlist['bid'] ?>">
                <a href="/brand/tebrandexcel?bid=<?php echo $brandlist['bid'] ?>" class="zdmx">终端明细</a>
                <a href="javascript:;" data-bid="<?php echo $brandlist['bid'] ?>" class="zdyj">终端业绩</a>
              </td>
							<td class="center" data-bid="<?php echo $brandlist['bid'] ?>">
                <a href="javascript:;" class="updateBrand">修改</a>
                <a href="javascript:;" class="deleteBrand">删除</a></td>
            </tr>
						<?php endforeach; ?>
					</tbody>
				</table>
			</div>
		</div>
</div>
<script type="text/javascript" src="../public/js/common/YMD.js"></script>
<script type="text/javascript" src="../public/js/brand/brand.js"></script>
<?php
$this->load->view('common/footer');
?>
